using System;
using System.Collections.Generic;
using System.Text;
using MongoDB;

namespace ConsoleApplication1.Data
{
    public class Context
    {
        public string DbName = "parking";
        IMongoDatabase _db;
        public Context()
        {
            Mongo mongo = new Mongo();
            mongo.Connect(); 
            _db = mongo.GetDatabase(DbName);
        }

        public IMongoDatabase DB
        {
            get { return _db; }
        }
        

    }
}
